package com.learn.threadpool.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.learn.threadpool.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {


    /**
     * 批量新增数据（MyBatis原生foreach方法）
     * @param list
     * @return
     */
    int saveBatchOrder(@Param("list") List<Order> list);

}
